import request from '@/utils/request'

// 查询入金记录列表
export function listDepositRecord(query) {
  return request({
    url: '/ecs/depositRecord/list',
    method: 'get',
    params: query
  })
}

// 查询入金记录详细
export function getDepositRecord(id) {
  return request({
    url: '/ecs/depositRecord/' + id,
    method: 'get'
  })
}

// 新增入金记录
export function addDepositRecord(data) {
  return request({
    url: '/ecs/depositRecord',
    method: 'post',
    data: data
  })
}

// 修改入金记录
export function updateDepositRecord(data) {
  return request({
    url: '/ecs/depositRecord',
    method: 'put',
    data: data
  })
}

// 删除入金记录
export function delDepositRecord(id) {
  return request({
    url: '/ecs/depositRecord/' + id,
    method: 'delete'
  })
}
